﻿using System;
using SqlSugar;

namespace Ioacp.Syka.Dbs
{
    [SugarTable("Department_Info", TableDescription = "部门信息表")]
    public class DeptInfo
    {
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true,
            ColumnDescription = "部门Id", ColumnDataType = "varchar", Length = 36)]
        public string DeptId { get; set; }

        [SugarColumn(ColumnName = "Name",
            ColumnDescription = "部门名称", ColumnDataType = "varchar", Length = 50)]
        public string DeptName { get; set; }

        [SugarColumn(ColumnName = "Parent_Id",
            ColumnDescription = "父部门Id", ColumnDataType = "varchar", Length = 36)]
        public string ParentDeptId { get; set; }

        [SugarColumn(ColumnName = "Order_Num",
            ColumnDescription = "排序码", ColumnDataType = "varchar", Length = 30)]
        public string OrderNum { get; set; }

        [SugarColumn(ColumnName = "Sync_Flag",
            ColumnDescription = "同步标识(1 新增 2 修改 3 删除)")]
        public Int16 SyncFlag { get; set; }
    }
}